package wzc.design_pattern.creation.singleton;

/**
 * @Author 王振川
 * @Date 2025/7/20
 * @Description 静态内部类创建
 */

public class StaticInnerClass {
    private StaticInnerClass() {}

    private static class LazyInitializationSync {
        private static final StaticInnerClass INSTANCE = new StaticInnerClass();
    }

    public static StaticInnerClass getInstance() {
        return LazyInitializationSync.INSTANCE;
    }
}
